﻿<UserControl x:Class="Hopscotch.Presentation.PartyModule.Views.AccountView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:sys="clr-namespace:System;assembly=mscorlib"
			 xmlns:col="clr-namespace:System.Collections;assembly=mscorlib"
			 
			 xmlns:localVms="clr-namespace:Hopscotch.Presentation.PartyModule.ViewModels;assembly=Hopscotch.Presentation.PartyModule"
		     xmlns:cntrls="clr-namespace:Hopscotch.Presentation.Controls;assembly=Hopscotch.Presentation.Controls"
			 xmlns:cntrlsCore="clr-namespace:Hopscotch.Presentation.Controls.Core;assembly=Hopscotch.Presentation.Controls"
			 
             mc:Ignorable="d" 			
			 d:DataContext="{d:DesignInstance Type=localVms:AccountViewModel, IsDesignTimeCreatable=True}"
             d:DesignHeight="300" d:DesignWidth="300">
	
	<UserControl.Resources>
		<col:ArrayList x:Key="AvailableElements">
			<TextBox>Hello World 1!</TextBox>
			<cntrlsCore:QuantityControl Quantity="{Binding Path=QtyTest, Mode=TwoWay}"/>
			<!--<cntrlsCore:PriceControl ViewModel="{Binding Path=PriceViewModel, Mode=TwoWay}"/>-->
		</col:ArrayList>
	</UserControl.Resources>

	<StackPanel>
	<cntrls:DynamicPanel x:Name="dynamicPanel" AvailableElements="{StaticResource ResourceKey=AvailableElements}"/>

		<Button Click="Button_Click">Edit</Button>
	</StackPanel>
</UserControl>
